package com.yytek.upgrade.mapper;

import java.util.List;
import com.yytek.upgrade.domain.UpgradeStrategyDeviceTopo;

/**
 * 升级策略设备关联Mapper接口
 * 
 * @author yytek-iot
 * @date 2022-09-06
 */
public interface UpgradeStrategyDeviceTopoMapper 
{
    /**
     * 查询升级策略设备关联
     * 
     * @param strategyId 升级策略设备关联主键
     * @return 升级策略设备关联
     */
    public List<UpgradeStrategyDeviceTopo> selectUpgradeStrategyDeviceTopoByStrategyId(Long strategyId);

    /**
     * 查询升级策略设备关联列表
     * 
     * @param upgradeStrategyDeviceTopo 升级策略设备关联
     * @return 升级策略设备关联集合
     */
    public List<UpgradeStrategyDeviceTopo> selectUpgradeStrategyDeviceTopoList(UpgradeStrategyDeviceTopo upgradeStrategyDeviceTopo);

    /**
     * 新增升级策略设备关联
     * 
     * @param upgradeStrategyDeviceTopo 升级策略设备关联
     * @return 结果
     */
    public int insertUpgradeStrategyDeviceTopo(UpgradeStrategyDeviceTopo upgradeStrategyDeviceTopo);

    /**
     * 批量新增升级策略设备关联
     *
     * @param upgradeStrategyDeviceTopoList 升级策略设备关联列表
     * @return 结果
     */
    public int batchUpgradeStrategyDeviceTopo(List<UpgradeStrategyDeviceTopo> upgradeStrategyDeviceTopoList);

    /**
     * 修改升级策略设备关联
     * 
     * @param upgradeStrategyDeviceTopo 升级策略设备关联
     * @return 结果
     */
    public int updateUpgradeStrategyDeviceTopo(UpgradeStrategyDeviceTopo upgradeStrategyDeviceTopo);

    /**
     * 批量修改升级策略设备关联
     *
     * @param upgradeStrategyDeviceTopoList 升级策略设备关联列表
     * @return 结果
     */
    public int updateListUpgradeStrategyDeviceTopo(List<UpgradeStrategyDeviceTopo> upgradeStrategyDeviceTopoList);

    /**
     * 删除升级策略设备关联
     * 
     * @param strategyId 升级策略设备关联主键
     * @return 结果
     */
    public int deleteUpgradeStrategyDeviceTopoByStrategyId(Long strategyId);

    /**
     * 批量删除升级策略设备关联
     * 
     * @param strategyIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteUpgradeStrategyDeviceTopoByStrategyIds(Long[] strategyIds);
}
